<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"  
		xmlns:h="http://java.sun.com/jsf/html"  
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:ui="http://java.sun.com/jsf/facelets"
		xmlns:c="http://java.sun.com/jsp/jstl/core"
        xmlns:a4j="http://richfaces.org/a4j"
        xmlns:rich="http://richfaces.org/rich"> 

    <ui:composition template="#{helperNavigation.getPathTemplate('member')}">
        <ui:define name="pageTitle">Votre profil</ui:define>
        <ui:define name="mainTitle">Votre profil</ui:define>
        <ui:define name="mainContent">
            <h:form id="fakeFormProfile" class="center">
                <h:panelGrid columns="2" class="center" cellpadding="20" >
                    <h:column>
                        <fieldset>
                            <legend><h3>Informations personnelles</h3></legend>
                            <h:panelGrid columns="2" cellpadding="10">
                                <h:outputText value="Nom :" class="label" />
                                <h:outputText value="#{userSession.lastName.length() gt 0? userSession.lastName : 'Non renseigné'}" class="green b" />

                                <h:outputText value="Prénom :" class="label" />
                                <h:outputText value="#{userSession.firstName.length() gt 0? userSession.firstName : 'Non renseigné'}" class="green b" />

                                <h:outputText value="E-mail :" class="label" />
                                <h:outputText value="#{userSession.email.length() gt 0? userSession.email : 'Non renseigné'}" class="green b" />

                                <h:outputText value="Pseudo :" class="label" />
                                <h:outputText value="#{userSession.login.length() gt 0? userSession.login : 'Non renseigné'}" class="green b" />
                                <br />
                                
                            </h:panelGrid>
                        </fieldset>
                    </h:column>

                    <h:column>
                        <fieldset>
                            <legend><h3>Adresse de livraison</h3></legend>
                            <h:panelGrid columns="2" cellpadding="10">
                                <h:outputText value="Pays :" class="label" />
                                <h:outputText value="#{userSession.address.country.length() gt 0? userSession.address.country : 'Non renseigné'}" class="green" />

                                <h:outputText value="Ville :" class="label" />
                                <h:outputText value="#{userSession.address.city.length() gt 0? userSession.address.city : 'Non renseigné'}" class="green" />

                                <h:outputText value="Code postal :" class="label" />
                                <h:outputText value="#{userSession.address.zipCode.length() gt 0? userSession.address.zipCode : 'Non renseigné'}" class="green" />

                                <h:outputText value="Adresse :" class="label" />
                                <h:outputText value="#{userSession.address.line1.length() gt 0? userSession.address.line1 : 'Non renseigné'}" class="green"  />

                                <h:outputText value="Complément :" class="label" />
                                <h:outputText value="#{userSession.address.line2.length() gt 0? userSession.address.line2 : 'Non renseigné'}" class="blue" />
                            </h:panelGrid>
                        </fieldset>
                    </h:column>
                </h:panelGrid>
                <br />
                <h:commandButton action="#{helperNavigation.getActionUrl('profileUpdate')}" value="Éditer le profil" class="btn btn-primary" style="margin-left: 20px" />
            </h:form>
        </ui:define>
    </ui:composition>
</html>

